package com.ctgu.fastleader.service.serviceImpl;

import com.ctgu.fastleader.dao.WareHouseMapper;
import com.ctgu.fastleader.service.WareHouseService;
import com.ctgu.fastleader.vo.WareHouse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WareHouseServiceImpl implements WareHouseService {

    @Autowired
    WareHouseMapper wareHouseMapper;

    @Override
    public Integer selectHouseIdByHouseName(String housename) {
        return wareHouseMapper.selectHouseIdByHouseName(housename);
    }

    @Override
    public List<String> findAllWarehouseName() {
        return wareHouseMapper.findAllWarehouseName();
    }

    @Override
    public List<WareHouse> findAllWarehouse() {
        return wareHouseMapper.findAllWarehouse();
    }

    @Override
    public int insert(WareHouse record) {
        return wareHouseMapper.insert(record);
    }

    @Override
    public int updateByPrimaryKeySelective(WareHouse record) {
        return wareHouseMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public String selectHouseInfoByHouseName(String housename) {
        return wareHouseMapper.selectHouseInfoByHouseName(housename);
    }
}
